package com.zhousb.deviceManager.model.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.BooleanEnum;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
import lombok.Data;

@Data
public class ExportCreateDto {
    @ColumnWidth(16)
    @ExcelProperty(value = "收件人姓名",order = 1)
    private String consigneeName;
    @ColumnWidth(16)
    @ExcelProperty(value = "收件人手机/电话",order = 2)
    private String consigneeTel;
    @ColumnWidth(24)
    @ExcelProperty(value = "收件人详细地址",order = 3)
    private String consigneeAddress;
    @ColumnWidth(16)
    @ExcelProperty(value = "寄件人姓名",order = 6)
    private String senderName;
    @ColumnWidth(16)
    @ExcelProperty(value = "寄件人电话",order = 7)
    private String senderTel;
    @ColumnWidth(24)
    @ExcelProperty(value = "寄件人详细地址",order = 8)
    private String senderAddress;
    @ColumnWidth(16)
    @ExcelProperty(value = "物品名称",order = 4)
    private String goods;
    @ColumnWidth(50)
    @ContentStyle(
            horizontalAlignment = HorizontalAlignmentEnum.CENTER,
            verticalAlignment = VerticalAlignmentEnum.CENTER,
            wrapped = BooleanEnum.TRUE)
    @ExcelProperty(value = "备注",order = 5)
    private String remark;
}
